package com.atguigu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author wzb 二级分类VO
 * @version V1.0
 * @Package com.atguigu.gulimall.product.vo
 * @date 2022-07-07 15:30
 * @Copyright ©
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Catelog2VO {

    /**
     * 1级父分类id
     */
    private String catalog1Id;

    /**
     * 三级子分类
     */
    private List<Catelog3VO> catalog3List;

    private String id;

    private String name;



    /**
     * 三级分类VO
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Catelog3VO{
        /**
         * 2级父分类id
         */
        private String catalog2Id;

        private String id;

        private String name;
    }



}
